package com.elinkway.infinitemovies.async;

import android.content.Context;
import android.os.Bundle;

import com.elinkway.infinitemovies.bean.CommonBean;
import com.elinkway.infinitemovies.http.api.MoviesHttpApi;
import com.elinkway.infinitemovies.http.parser.CommonParser;
import com.lvideo.http.bean.LVideoDataHull;


/**
 * Created by chengjianlong on 2017/4/24.
 */

public class ReportRealDataTask extends MoviesHttpAsyncTask<CommonBean> {
    private Bundle params;

    @Override
    public void netNull() {
        super.netNull();
    }

    @Override
    public void netErr(int updateId, String errMsg) {
        super.netErr(updateId, errMsg);
    }

    @Override
    public void dataNull(int updateId, String errMsg) {
        super.dataNull(updateId, errMsg);
    }

    public ReportRealDataTask(Context context, Bundle params) {
        super(context);
        this.params = params;
    }

    @Override
    public LVideoDataHull<CommonBean> doInBackground() {
        LVideoDataHull<CommonBean> ret = MoviesHttpApi.requestRecReportData(
                new CommonParser(), params);
        return ret;
    }

    @Override
    public void onPostExecute(int updateId, CommonBean result) { }
}
